package top.lilele.adminSystem.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author lilele
 */
@Data
@Component
@ConfigurationProperties(prefix = "mail")
public class MailConfig {
    /**
     * 邮箱smtp
     */
    private String host;

    /**
     * 按照这种RFC-822这种格式，可以有昵称
     */
    private String from;

    /**
     * 端口
     */
    private Integer port;

    /**
     * 授权码
     */
    private String pass;
}
